package com.lp.module_lib.utils;

import android.util.Log;

import com.lp.module_lib.BaseApp;

/**
 * 作者：created by LP_TREAM on 2020/11/25 23:39
 * 邮箱：806875201@qq.com
 */
public class L {
    private final static String TAG = "Component-master --->  ";

    private final static boolean DEBUG = BaseApp.isDebug;

    private final static boolean CANCEL_TAG = true;

    public static void i(String message) {
        if (DEBUG) {
            Log.i(TAG, message);
        }
    }

    public static void i(String tag, String message) {
        if (DEBUG) {
            if (!CANCEL_TAG) {
                Log.i(tag, message);
            } else {
                i(message);
            }
        }
    }

    public static void w(String message) {
        if (DEBUG) {
            Log.w(TAG, message);
        }
    }

    public static void w(String tag, String message) {
        if (DEBUG) {
            if (!CANCEL_TAG) {
                Log.w(tag, message);
            } else {
                w(message);
            }
        }

    }

    public static void e(String message) {
        if (DEBUG) {
            Log.e(TAG, message);
        }
    }

    public static void e(String tag, String message) {
        if (DEBUG) {
            if (!CANCEL_TAG) {
                Log.e(tag, message);
            } else {
                e(message);
            }
        }
    }
}
